home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / Online / x3270 / unix_files / configure < prev    next >
Encoding:
Text File  |  2009-02-26  |  61.8 KB  |  2,007 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.13 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --with-x                use the X Window System"
  16. ac_help="$ac_help
  17.   --enable-app-defaults   use a separate app-defaults file"
  18. ac_help="$ac_help
  19.   --without-pr3287        don't build pr3287"
  20. ac_help="$ac_help
  21.   --with-fontdir=xxx      install fonts in directory xxx [ARG=misc]"
  22.  
  23. # Initialize some variables set by options.
  24. # The variables have the same names as the options, with
  25. # dashes changed to underlines.
  26. build=NONE
  27. cache_file=./config.cache
  28. exec_prefix=NONE
  29. host=NONE
  30. no_create=
  31. nonopt=NONE
  32. no_recursion=
  33. prefix=NONE
  34. program_prefix=NONE
  35. program_suffix=NONE
  36. program_transform_name=s,x,x,
  37. silent=
  38. site=
  39. srcdir=
  40. target=NONE
  41. verbose=
  42. x_includes=NONE
  43. x_libraries=NONE
  44. bindir='${exec_prefix}/bin'
  45. sbindir='${exec_prefix}/sbin'
  46. libexecdir='${exec_prefix}/libexec'
  47. datadir='${prefix}/share'
  48. sysconfdir='${prefix}/etc'
  49. sharedstatedir='${prefix}/com'
  50. localstatedir='${prefix}/var'
  51. libdir='${exec_prefix}/lib'
  52. includedir='${prefix}/include'
  53. oldincludedir='/usr/include'
  54. infodir='${prefix}/info'
  55. mandir='${prefix}/man'
  56.  
  57. # Initialize some other variables.
  58. subdirs=
  59. MFLAGS= MAKEFLAGS=
  60. SHELL=${CONFIG_SHELL-/bin/sh}
  61. # Maximum number of lines to put in a shell here document.
  62. ac_max_here_lines=12
  63.  
  64. ac_prev=
  65. for ac_option
  66. do
  67.  
  68.   # If the previous option needs an argument, assign it.
  69.   if test -n "$ac_prev"; then
  70.     eval "$ac_prev=\$ac_option"
  71.     ac_prev=
  72.     continue
  73.   fi
  74.  
  75.   case "$ac_option" in
  76.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  77.   *) ac_optarg= ;;
  78.   esac
  79.  
  80.   # Accept the important Cygnus configure options, so we can diagnose typos.
  81.  
  82.   case "$ac_option" in
  83.  
  84.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  85.     ac_prev=bindir ;;
  86.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  87.     bindir="$ac_optarg" ;;
  88.  
  89.   -build | --build | --buil | --bui | --bu)
  90.     ac_prev=build ;;
  91.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  92.     build="$ac_optarg" ;;
  93.  
  94.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  95.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  96.     ac_prev=cache_file ;;
  97.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  98.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  99.     cache_file="$ac_optarg" ;;
  100.  
  101.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  102.     ac_prev=datadir ;;
  103.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  104.   | --da=*)
  105.     datadir="$ac_optarg" ;;
  106.  
  107.   -disable-* | --disable-*)
  108.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  109.     # Reject names that are not valid shell variable names.
  110.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  111.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  112.     fi
  113.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  114.     eval "enable_${ac_feature}=no" ;;
  115.  
  116.   -enable-* | --enable-*)
  117.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  118.     # Reject names that are not valid shell variable names.
  119.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  120.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  121.     fi
  122.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  123.     case "$ac_option" in
  124.       *=*) ;;
  125.       *) ac_optarg=yes ;;
  126.     esac
  127.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  128.  
  129.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  130.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  131.   | --exec | --exe | --ex)
  132.     ac_prev=exec_prefix ;;
  133.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  134.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  135.   | --exec=* | --exe=* | --ex=*)
  136.     exec_prefix="$ac_optarg" ;;
  137.  
  138.   -gas | --gas | --ga | --g)
  139.     # Obsolete; use --with-gas.
  140.     with_gas=yes ;;
  141.  
  142.   -help | --help | --hel | --he)
  143.     # Omit some internal or obsolete options to make the list less imposing.
  144.     # This message is too long to be a string in the A/UX 3.1 sh.
  145.     cat << EOF
  146. Usage: configure [options] [host]
  147. Options: [defaults in brackets after descriptions]
  148. Configuration:
  149.   --cache-file=FILE       cache test results in FILE
  150.   --help                  print this message
  151.   --no-create             do not create output files
  152.   --quiet, --silent       do not print \`checking...' messages
  153.   --version               print the version of autoconf that created configure
  154. Directory and file names:
  155.   --prefix=PREFIX         install architecture-independent files in PREFIX
  156.                           [$ac_default_prefix]
  157.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  158.                           [same as prefix]
  159.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  160.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  161.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  162.   --datadir=DIR           read-only architecture-independent data in DIR
  163.                           [PREFIX/share]
  164.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  165.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  166.                           [PREFIX/com]
  167.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  168.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  169.   --includedir=DIR        C header files in DIR [PREFIX/include]
  170.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  171.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  172.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  173.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  174.   --program-prefix=PREFIX prepend PREFIX to installed program names
  175.   --program-suffix=SUFFIX append SUFFIX to installed program names
  176.   --program-transform-name=PROGRAM
  177.                           run sed PROGRAM on installed program names
  178. EOF
  179.     cat << EOF
  180. Host type:
  181.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  182.   --host=HOST             configure for HOST [guessed]
  183.   --target=TARGET         configure for TARGET [TARGET=HOST]
  184. Features and packages:
  185.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  186.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  187.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  188.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  189.   --x-includes=DIR        X include files are in DIR
  190.   --x-libraries=DIR       X library files are in DIR
  191. EOF
  192.     if test -n "$ac_help"; then
  193.       echo "--enable and --with options recognized:$ac_help"
  194.     fi
  195.     exit 0 ;;
  196.  
  197.   -host | --host | --hos | --ho)
  198.     ac_prev=host ;;
  199.   -host=* | --host=* | --hos=* | --ho=*)
  200.     host="$ac_optarg" ;;
  201.  
  202.   -includedir | --includedir | --includedi | --included | --include \
  203.   | --includ | --inclu | --incl | --inc)
  204.     ac_prev=includedir ;;
  205.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  206.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  207.     includedir="$ac_optarg" ;;
  208.  
  209.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  210.     ac_prev=infodir ;;
  211.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  212.     infodir="$ac_optarg" ;;
  213.  
  214.   -libdir | --libdir | --libdi | --libd)
  215.     ac_prev=libdir ;;
  216.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  217.     libdir="$ac_optarg" ;;
  218.  
  219.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  220.   | --libexe | --libex | --libe)
  221.     ac_prev=libexecdir ;;
  222.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  223.   | --libexe=* | --libex=* | --libe=*)
  224.     libexecdir="$ac_optarg" ;;
  225.  
  226.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  227.   | --localstate | --localstat | --localsta | --localst \
  228.   | --locals | --local | --loca | --loc | --lo)
  229.     ac_prev=localstatedir ;;
  230.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  231.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  232.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  233.     localstatedir="$ac_optarg" ;;
  234.  
  235.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  236.     ac_prev=mandir ;;
  237.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  238.     mandir="$ac_optarg" ;;
  239.  
  240.   -nfp | --nfp | --nf)
  241.     # Obsolete; use --without-fp.
  242.     with_fp=no ;;
  243.  
  244.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  245.   | --no-cr | --no-c)
  246.     no_create=yes ;;
  247.  
  248.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  249.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  250.     no_recursion=yes ;;
  251.  
  252.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  253.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  254.   | --oldin | --oldi | --old | --ol | --o)
  255.     ac_prev=oldincludedir ;;
  256.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  257.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  258.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  259.     oldincludedir="$ac_optarg" ;;
  260.  
  261.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  262.     ac_prev=prefix ;;
  263.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  264.     prefix="$ac_optarg" ;;
  265.  
  266.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  267.   | --program-pre | --program-pr | --program-p)
  268.     ac_prev=program_prefix ;;
  269.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  270.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  271.     program_prefix="$ac_optarg" ;;
  272.  
  273.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  274.   | --program-suf | --program-su | --program-s)
  275.     ac_prev=program_suffix ;;
  276.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  277.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  278.     program_suffix="$ac_optarg" ;;
  279.  
  280.   -program-transform-name | --program-transform-name \
  281.   | --program-transform-nam | --program-transform-na \
  282.   | --program-transform-n | --program-transform- \
  283.   | --program-transform | --program-transfor \
  284.   | --program-transfo | --program-transf \
  285.   | --program-trans | --program-tran \
  286.   | --progr-tra | --program-tr | --program-t)
  287.     ac_prev=program_transform_name ;;
  288.   -program-transform-name=* | --program-transform-name=* \
  289.   | --program-transform-nam=* | --program-transform-na=* \
  290.   | --program-transform-n=* | --program-transform-=* \
  291.   | --program-transform=* | --program-transfor=* \
  292.   | --program-transfo=* | --program-transf=* \
  293.   | --program-trans=* | --program-tran=* \
  294.   | --progr-tra=* | --program-tr=* | --program-t=*)
  295.     program_transform_name="$ac_optarg" ;;
  296.  
  297.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  298.   | -silent | --silent | --silen | --sile | --sil)
  299.     silent=yes ;;
  300.  
  301.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  302.     ac_prev=sbindir ;;
  303.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  304.   | --sbi=* | --sb=*)
  305.     sbindir="$ac_optarg" ;;
  306.  
  307.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  308.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  309.   | --sharedst | --shareds | --shared | --share | --shar \
  310.   | --sha | --sh)
  311.     ac_prev=sharedstatedir ;;
  312.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  313.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  314.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  315.   | --sha=* | --sh=*)
  316.     sharedstatedir="$ac_optarg" ;;
  317.  
  318.   -site | --site | --sit)
  319.     ac_prev=site ;;
  320.   -site=* | --site=* | --sit=*)
  321.     site="$ac_optarg" ;;
  322.  
  323.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  324.     ac_prev=srcdir ;;
  325.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  326.     srcdir="$ac_optarg" ;;
  327.  
  328.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  329.   | --syscon | --sysco | --sysc | --sys | --sy)
  330.     ac_prev=sysconfdir ;;
  331.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  332.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  333.     sysconfdir="$ac_optarg" ;;
  334.  
  335.   -target | --target | --targe | --targ | --tar | --ta | --t)
  336.     ac_prev=target ;;
  337.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  338.     target="$ac_optarg" ;;
  339.  
  340.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  341.     verbose=yes ;;
  342.  
  343.   -version | --version | --versio | --versi | --vers)
  344.     echo "configure generated by autoconf version 2.13"
  345.     exit 0 ;;
  346.  
  347.   -with-* | --with-*)
  348.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  349.     # Reject names that are not valid shell variable names.
  350.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  351.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  352.     fi
  353.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  354.     case "$ac_option" in
  355.       *=*) ;;
  356.       *) ac_optarg=yes ;;
  357.     esac
  358.     eval "with_${ac_package}='$ac_optarg'" ;;
  359.  
  360.   -without-* | --without-*)
  361.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  362.     # Reject names that are not valid shell variable names.
  363.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  364.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  365.     fi
  366.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  367.     eval "with_${ac_package}=no" ;;
  368.  
  369.   --x)
  370.     # Obsolete; use --with-x.
  371.     with_x=yes ;;
  372.  
  373.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  374.   | --x-incl | --x-inc | --x-in | --x-i)
  375.     ac_prev=x_includes ;;
  376.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  377.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  378.     x_includes="$ac_optarg" ;;
  379.  
  380.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  381.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  382.     ac_prev=x_libraries ;;
  383.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  384.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  385.     x_libraries="$ac_optarg" ;;
  386.  
  387.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  388.     ;;
  389.  
  390.   *)
  391.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  392.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  393.     fi
  394.     if test "x$nonopt" != xNONE; then
  395.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  396.     fi
  397.     nonopt="$ac_option"
  398.     ;;
  399.  
  400.   esac
  401. done
  402.  
  403. if test -n "$ac_prev"; then
  404.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  405. fi
  406.  
  407. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  408.  
  409. # File descriptor usage:
  410. # 0 standard input
  411. # 1 file creation
  412. # 2 errors and warnings
  413. # 3 some systems may open it to /dev/tty
  414. # 4 used on the Kubota Titan
  415. # 6 checking for... messages and results
  416. # 5 compiler messages saved in config.log
  417. if test "$silent" = yes; then
  418.   exec 6>/dev/null
  419. else
  420.   exec 6>&1
  421. fi
  422. exec 5>./config.log
  423.  
  424. echo "\
  425. This file contains any messages produced by compilers while
  426. running configure, to aid debugging if configure makes a mistake.
  427. " 1>&5
  428.  
  429. # Strip out --no-create and --no-recursion so they do not pile up.
  430. # Also quote any args containing shell metacharacters.
  431. ac_configure_args=
  432. for ac_arg
  433. do
  434.   case "$ac_arg" in
  435.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  436.   | --no-cr | --no-c) ;;
  437.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  438.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  439.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  440.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  441.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  442.   esac
  443. done
  444.  
  445. # NLS nuisances.
  446. # Only set these to C if already set.  These must not be set unconditionally
  447. # because not all systems understand e.g. LANG=C (notably SCO).
  448. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  449. # Non-C LC_CTYPE values break the ctype check.
  450. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  451. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  452. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  453. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  454.  
  455. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  456. rm -rf conftest* confdefs.h
  457. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  458. echo > confdefs.h
  459.  
  460. # A filename unique to this package, relative to the directory that
  461. # configure is in, which we can look for to find out if srcdir is correct.
  462. ac_unique_file=main.c
  463.  
  464. # Find the source files, if location was not specified.
  465. if test -z "$srcdir"; then
  466.   ac_srcdir_defaulted=yes
  467.   # Try the directory containing this script, then its parent.
  468.   ac_prog=$0
  469.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  470.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  471.   srcdir=$ac_confdir
  472.   if test ! -r $srcdir/$ac_unique_file; then
  473.     srcdir=..
  474.   fi
  475. else
  476.   ac_srcdir_defaulted=no
  477. fi
  478. if test ! -r $srcdir/$ac_unique_file; then
  479.   if test "$ac_srcdir_defaulted" = yes; then
  480.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  481.   else
  482.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  483.   fi
  484. fi
  485. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  486.  
  487. # Prefer explicitly selected file to automatically selected ones.
  488. if test -z "$CONFIG_SITE"; then
  489.   if test "x$prefix" != xNONE; then
  490.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  491.   else
  492.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  493.   fi
  494. fi
  495. for ac_site_file in $CONFIG_SITE; do
  496.   if test -r "$ac_site_file"; then
  497.     echo "loading site script $ac_site_file"
  498.     . "$ac_site_file"
  499.   fi
  500. done
  501.  
  502. if test -r "$cache_file"; then
  503.   echo "loading cache $cache_file"
  504.   . $cache_file
  505. else
  506.   echo "creating cache $cache_file"
  507.   > $cache_file
  508. fi
  509.  
  510. ac_ext=c
  511. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  512. ac_cpp='$CPP $CPPFLAGS'
  513. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  514. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  515. cross_compiling=$ac_cv_prog_cc_cross
  516.  
  517. ac_exeext=
  518. ac_objext=o
  519. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  520.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  521.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  522.     ac_n= ac_c='
  523. ' ac_t='    '
  524.   else
  525.     ac_n=-n ac_c= ac_t=
  526.   fi
  527. else
  528.   ac_n= ac_c='\c' ac_t=
  529. fi
  530.  
  531.  
  532.  
  533. ac_aux_dir=
  534. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  535.   if test -f $ac_dir/install-sh; then
  536.     ac_aux_dir=$ac_dir
  537.     ac_install_sh="$ac_aux_dir/install-sh -c"
  538.     break
  539.   elif test -f $ac_dir/install.sh; then
  540.     ac_aux_dir=$ac_dir
  541.     ac_install_sh="$ac_aux_dir/install.sh -c"
  542.     break
  543.   fi
  544. done
  545. if test -z "$ac_aux_dir"; then
  546.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  547. fi
  548. ac_config_guess=$ac_aux_dir/config.guess
  549. ac_config_sub=$ac_aux_dir/config.sub
  550. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  551.  
  552. # Find a good install program.  We prefer a C program (faster),
  553. # so one script is as good as another.  But avoid the broken or
  554. # incompatible versions:
  555. # SysV /etc/install, /usr/sbin/install
  556. # SunOS /usr/etc/install
  557. # IRIX /sbin/install
  558. # AIX /bin/install
  559. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  560. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  561. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  562. # ./install, which can be erroneously created by make from ./install.sh.
  563. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  564. echo "configure:565: checking for a BSD compatible install" >&5
  565. if test -z "$INSTALL"; then
  566. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  567.   echo $ac_n "(cached) $ac_c" 1>&6
  568. else
  569.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  570.   for ac_dir in $PATH; do
  571.     # Account for people who put trailing slashes in PATH elements.
  572.     case "$ac_dir/" in
  573.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  574.     *)
  575.       # OSF1 and SCO ODT 3.0 have their own names for install.
  576.       # Don't use installbsd from OSF since it installs stuff as root
  577.       # by default.
  578.       for ac_prog in ginstall scoinst install; do
  579.         if test -f $ac_dir/$ac_prog; then
  580.       if test $ac_prog = install &&
  581.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  582.         # AIX install.  It has an incompatible calling convention.
  583.         :
  584.       else
  585.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  586.         break 2
  587.       fi
  588.     fi
  589.       done
  590.       ;;
  591.     esac
  592.   done
  593.   IFS="$ac_save_IFS"
  594.  
  595. fi
  596.   if test "${ac_cv_path_install+set}" = set; then
  597.     INSTALL="$ac_cv_path_install"
  598.   else
  599.     # As a last resort, use the slow shell script.  We don't cache a
  600.     # path for INSTALL within a source directory, because that will
  601.     # break other packages using the cache if that directory is
  602.     # removed, or if the path is relative.
  603.     INSTALL="$ac_install_sh"
  604.   fi
  605. fi
  606. echo "$ac_t""$INSTALL" 1>&6
  607.  
  608. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  609. # It thinks the first close brace ends the variable substitution.
  610. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  611.  
  612. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  613.  
  614. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  615.  
  616. # Extract the first word of "gcc", so it can be a program name with args.
  617. set dummy gcc; ac_word=$2
  618. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  619. echo "configure:620: checking for $ac_word" >&5
  620. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  621.   echo $ac_n "(cached) $ac_c" 1>&6
  622. else
  623.   if test -n "$CC"; then
  624.   ac_cv_prog_CC="$CC" # Let the user override the test.
  625. else
  626.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  627.   ac_dummy="$PATH"
  628.   for ac_dir in $ac_dummy; do
  629.     test -z "$ac_dir" && ac_dir=.
  630.     if test -f $ac_dir/$ac_word; then
  631.       ac_cv_prog_CC="gcc"
  632.       break
  633.     fi
  634.   done
  635.   IFS="$ac_save_ifs"
  636. fi
  637. fi
  638. CC="$ac_cv_prog_CC"
  639. if test -n "$CC"; then
  640.   echo "$ac_t""$CC" 1>&6
  641. else
  642.   echo "$ac_t""no" 1>&6
  643. fi
  644.  
  645. if test -z "$CC"; then
  646.   # Extract the first word of "cc", so it can be a program name with args.
  647. set dummy cc; ac_word=$2
  648. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  649. echo "configure:650: checking for $ac_word" >&5
  650. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  651.   echo $ac_n "(cached) $ac_c" 1>&6
  652. else
  653.   if test -n "$CC"; then
  654.   ac_cv_prog_CC="$CC" # Let the user override the test.
  655. else
  656.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  657.   ac_prog_rejected=no
  658.   ac_dummy="$PATH"
  659.   for ac_dir in $ac_dummy; do
  660.     test -z "$ac_dir" && ac_dir=.
  661.     if test -f $ac_dir/$ac_word; then
  662.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  663.         ac_prog_rejected=yes
  664.     continue
  665.       fi
  666.       ac_cv_prog_CC="cc"
  667.       break
  668.     fi
  669.   done
  670.   IFS="$ac_save_ifs"
  671. if test $ac_prog_rejected = yes; then
  672.   # We found a bogon in the path, so make sure we never use it.
  673.   set dummy $ac_cv_prog_CC
  674.   shift
  675.   if test $# -gt 0; then
  676.     # We chose a different compiler from the bogus one.
  677.     # However, it has the same basename, so the bogon will be chosen
  678.     # first if we set CC to just the basename; use the full file name.
  679.     shift
  680.     set dummy "$ac_dir/$ac_word" "$@"
  681.     shift
  682.     ac_cv_prog_CC="$@"
  683.   fi
  684. fi
  685. fi
  686. fi
  687. CC="$ac_cv_prog_CC"
  688. if test -n "$CC"; then
  689.   echo "$ac_t""$CC" 1>&6
  690. else
  691.   echo "$ac_t""no" 1>&6
  692. fi
  693.  
  694.   if test -z "$CC"; then
  695.     case "`uname -s`" in
  696.     *win32* | *WIN32*)
  697.       # Extract the first word of "cl", so it can be a program name with args.
  698. set dummy cl; ac_word=$2
  699. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  700. echo "configure:701: checking for $ac_word" >&5
  701. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  702.   echo $ac_n "(cached) $ac_c" 1>&6
  703. else
  704.   if test -n "$CC"; then
  705.   ac_cv_prog_CC="$CC" # Let the user override the test.
  706. else
  707.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  708.   ac_dummy="$PATH"
  709.   for ac_dir in $ac_dummy; do
  710.     test -z "$ac_dir" && ac_dir=.
  711.     if test -f $ac_dir/$ac_word; then
  712.       ac_cv_prog_CC="cl"
  713.       break
  714.     fi
  715.   done
  716.   IFS="$ac_save_ifs"
  717. fi
  718. fi
  719. CC="$ac_cv_prog_CC"
  720. if test -n "$CC"; then
  721.   echo "$ac_t""$CC" 1>&6
  722. else
  723.   echo "$ac_t""no" 1>&6
  724. fi
  725.  ;;
  726.     esac
  727.   fi
  728.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  729. fi
  730.  
  731. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  732. echo "configure:733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  733.  
  734. ac_ext=c
  735. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  736. ac_cpp='$CPP $CPPFLAGS'
  737. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  738. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  739. cross_compiling=$ac_cv_prog_cc_cross
  740.  
  741. cat > conftest.$ac_ext << EOF
  742.  
  743. #line 744 "configure"
  744. #include "confdefs.h"
  745.  
  746. main(){return(0);}
  747. EOF
  748. if { (eval echo configure:749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  749.   ac_cv_prog_cc_works=yes
  750.   # If we can't run a trivial program, we are probably using a cross compiler.
  751.   if (./conftest; exit) 2>/dev/null; then
  752.     ac_cv_prog_cc_cross=no
  753.   else
  754.     ac_cv_prog_cc_cross=yes
  755.   fi
  756. else
  757.   echo "configure: failed program was:" >&5
  758.   cat conftest.$ac_ext >&5
  759.   ac_cv_prog_cc_works=no
  760. fi
  761. rm -fr conftest*
  762. ac_ext=c
  763. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  764. ac_cpp='$CPP $CPPFLAGS'
  765. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  766. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  767. cross_compiling=$ac_cv_prog_cc_cross
  768.  
  769. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  770. if test $ac_cv_prog_cc_works = no; then
  771.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  772. fi
  773. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  774. echo "configure:775: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  775. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  776. cross_compiling=$ac_cv_prog_cc_cross
  777.  
  778. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  779. echo "configure:780: checking whether we are using GNU C" >&5
  780. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  781.   echo $ac_n "(cached) $ac_c" 1>&6
  782. else
  783.   cat > conftest.c <<EOF
  784. #ifdef __GNUC__
  785.   yes;
  786. #endif
  787. EOF
  788. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  789.   ac_cv_prog_gcc=yes
  790. else
  791.   ac_cv_prog_gcc=no
  792. fi
  793. fi
  794.  
  795. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  796.  
  797. if test $ac_cv_prog_gcc = yes; then
  798.   GCC=yes
  799. else
  800.   GCC=
  801. fi
  802.  
  803. ac_test_CFLAGS="${CFLAGS+set}"
  804. ac_save_CFLAGS="$CFLAGS"
  805. CFLAGS=
  806. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  807. echo "configure:808: checking whether ${CC-cc} accepts -g" >&5
  808. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  809.   echo $ac_n "(cached) $ac_c" 1>&6
  810. else
  811.   echo 'void f(){}' > conftest.c
  812. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  813.   ac_cv_prog_cc_g=yes
  814. else
  815.   ac_cv_prog_cc_g=no
  816. fi
  817. rm -f conftest*
  818.  
  819. fi
  820.  
  821. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  822. if test "$ac_test_CFLAGS" = set; then
  823.   CFLAGS="$ac_save_CFLAGS"
  824. elif test $ac_cv_prog_cc_g = yes; then
  825.   if test "$GCC" = yes; then
  826.     CFLAGS="-g -O2"
  827.   else
  828.     CFLAGS="-g"
  829.   fi
  830. else
  831.   if test "$GCC" = yes; then
  832.     CFLAGS="-O2"
  833.   else
  834.     CFLAGS=
  835.   fi
  836. fi
  837.  
  838.  
  839.  
  840. # Make sure we can run config.sub.
  841. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  842. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  843. fi
  844.  
  845. echo $ac_n "checking host system type""... $ac_c" 1>&6
  846. echo "configure:847: checking host system type" >&5
  847.  
  848. host_alias=$host
  849. case "$host_alias" in
  850. NONE)
  851.   case $nonopt in
  852.   NONE)
  853.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  854.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  855.     fi ;;
  856.   *) host_alias=$nonopt ;;
  857.   esac ;;
  858. esac
  859.  
  860. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  861. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  862. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  863. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  864. echo "$ac_t""$host" 1>&6
  865.  
  866. case "$host_os" in
  867. solaris2*)    XANSI=-D__EXTENSIONS__
  868.         ;;
  869. *)        XANSI=""
  870.         ;;
  871. esac
  872.  
  873.  
  874. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  875. echo "configure:876: checking how to run the C preprocessor" >&5
  876. # On Suns, sometimes $CPP names a directory.
  877. if test -n "$CPP" && test -d "$CPP"; then
  878.   CPP=
  879. fi
  880. if test -z "$CPP"; then
  881. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  882.   echo $ac_n "(cached) $ac_c" 1>&6
  883. else
  884.     # This must be in double quotes, not single quotes, because CPP may get
  885.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  886.   CPP="${CC-cc} -E"
  887.   # On the NeXT, cc -E runs the code through the compiler's parser,
  888.   # not just through cpp.
  889.   cat > conftest.$ac_ext <<EOF
  890. #line 891 "configure"
  891. #include "confdefs.h"
  892. #include <assert.h>
  893. Syntax Error
  894. EOF
  895. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  896. { (eval echo configure:897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  897. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  898. if test -z "$ac_err"; then
  899.   :
  900. else
  901.   echo "$ac_err" >&5
  902.   echo "configure: failed program was:" >&5
  903.   cat conftest.$ac_ext >&5
  904.   rm -rf conftest*
  905.   CPP="${CC-cc} -E -traditional-cpp"
  906.   cat > conftest.$ac_ext <<EOF
  907. #line 908 "configure"
  908. #include "confdefs.h"
  909. #include <assert.h>
  910. Syntax Error
  911. EOF
  912. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  913. { (eval echo configure:914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  914. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  915. if test -z "$ac_err"; then
  916.   :
  917. else
  918.   echo "$ac_err" >&5
  919.   echo "configure: failed program was:" >&5
  920.   cat conftest.$ac_ext >&5
  921.   rm -rf conftest*
  922.   CPP="${CC-cc} -nologo -E"
  923.   cat > conftest.$ac_ext <<EOF
  924. #line 925 "configure"
  925. #include "confdefs.h"
  926. #include <assert.h>
  927. Syntax Error
  928. EOF
  929. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  930. { (eval echo configure:931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  931. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  932. if test -z "$ac_err"; then
  933.   :
  934. else
  935.   echo "$ac_err" >&5
  936.   echo "configure: failed program was:" >&5
  937.   cat conftest.$ac_ext >&5
  938.   rm -rf conftest*
  939.   CPP=/lib/cpp
  940. fi
  941. rm -f conftest*
  942. fi
  943. rm -f conftest*
  944. fi
  945. rm -f conftest*
  946.   ac_cv_prog_CPP="$CPP"
  947. fi
  948.   CPP="$ac_cv_prog_CPP"
  949. else
  950.   ac_cv_prog_CPP="$CPP"
  951. fi
  952. echo "$ac_t""$CPP" 1>&6
  953.  
  954. # If we find X, set shell vars x_includes and x_libraries to the
  955. # paths, otherwise set no_x=yes.
  956. # Uses ac_ vars as temps to allow command line to override cache and checks.
  957. # --without-x overrides everything else, but does not touch the cache.
  958. echo $ac_n "checking for X""... $ac_c" 1>&6
  959. echo "configure:960: checking for X" >&5
  960.  
  961. # Check whether --with-x or --without-x was given.
  962. if test "${with_x+set}" = set; then
  963.   withval="$with_x"
  964.   :
  965. fi
  966.  
  967. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  968. if test "x$with_x" = xno; then
  969.   # The user explicitly disabled X.
  970.   have_x=disabled
  971. else
  972.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  973.     # Both variables are already set.
  974.     have_x=yes
  975.   else
  976. if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  977.   echo $ac_n "(cached) $ac_c" 1>&6
  978. else
  979.   # One or both of the vars are not set, and there is no cached value.
  980. ac_x_includes=NO ac_x_libraries=NO
  981. rm -fr conftestdir
  982. if mkdir conftestdir; then
  983.   cd conftestdir
  984.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  985.   cat > Imakefile <<'EOF'
  986. acfindx:
  987.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  988. EOF
  989.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  990.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  991.     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  992.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  993.     for ac_extension in a so sl; do
  994.       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  995.         test -f $ac_im_libdir/libX11.$ac_extension; then
  996.         ac_im_usrlibdir=$ac_im_libdir; break
  997.       fi
  998.     done
  999.     # Screen out bogus values from the imake configuration.  They are
  1000.     # bogus both because they are the default anyway, and because
  1001.     # using them would break gcc on systems where it needs fixed includes.
  1002.     case "$ac_im_incroot" in
  1003.     /usr/include) ;;
  1004.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  1005.     esac
  1006.     case "$ac_im_usrlibdir" in
  1007.     /usr/lib | /lib) ;;
  1008.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  1009.     esac
  1010.   fi
  1011.   cd ..
  1012.   rm -fr conftestdir
  1013. fi
  1014.  
  1015. if test "$ac_x_includes" = NO; then
  1016.   # Guess where to find include files, by looking for this one X11 .h file.
  1017.   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  1018.  
  1019.   # First, try using that file with no special directory specified.
  1020. cat > conftest.$ac_ext <<EOF
  1021. #line 1022 "configure"
  1022. #include "confdefs.h"
  1023. #include <$x_direct_test_include>
  1024. EOF
  1025. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1026. { (eval echo configure:1027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1027. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1028. if test -z "$ac_err"; then
  1029.   rm -rf conftest*
  1030.   # We can compile using X headers with no special include directory.
  1031. ac_x_includes=
  1032. else
  1033.   echo "$ac_err" >&5
  1034.   echo "configure: failed program was:" >&5
  1035.   cat conftest.$ac_ext >&5
  1036.   rm -rf conftest*
  1037.   # Look for the header file in a standard set of common directories.
  1038. # Check X11 before X11Rn because it is often a symlink to the current release.
  1039.   for ac_dir in               \
  1040.     /usr/X11/include          \
  1041.     /usr/X11R6/include        \
  1042.     /usr/X11R5/include        \
  1043.     /usr/X11R4/include        \
  1044.                               \
  1045.     /usr/include/X11          \
  1046.     /usr/include/X11R6        \
  1047.     /usr/include/X11R5        \
  1048.     /usr/include/X11R4        \
  1049.                               \
  1050.     /usr/local/X11/include    \
  1051.     /usr/local/X11R6/include  \
  1052.     /usr/local/X11R5/include  \
  1053.     /usr/local/X11R4/include  \
  1054.                               \
  1055.     /usr/local/include/X11    \
  1056.     /usr/local/include/X11R6  \
  1057.     /usr/local/include/X11R5  \
  1058.     /usr/local/include/X11R4  \
  1059.                               \
  1060.     /usr/X386/include         \
  1061.     /usr/x386/include         \
  1062.     /usr/XFree86/include/X11  \
  1063.                               \
  1064.     /usr/include              \
  1065.     /usr/local/include        \
  1066.     /usr/unsupported/include  \
  1067.     /usr/athena/include       \
  1068.     /usr/local/x11r5/include  \
  1069.     /usr/lpp/Xamples/include  \
  1070.                               \
  1071.     /usr/openwin/include      \
  1072.     /usr/openwin/share/include \
  1073.     ; \
  1074.   do
  1075.     if test -r "$ac_dir/$x_direct_test_include"; then
  1076.       ac_x_includes=$ac_dir
  1077.       break
  1078.     fi
  1079.   done
  1080. fi
  1081. rm -f conftest*
  1082. fi # $ac_x_includes = NO
  1083.  
  1084. if test "$ac_x_libraries" = NO; then
  1085.   # Check for the libraries.
  1086.  
  1087.   test -z "$x_direct_test_library" && x_direct_test_library=Xt
  1088.   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  1089.  
  1090.   # See if we find them without any special options.
  1091.   # Don't add to $LIBS permanently.
  1092.   ac_save_LIBS="$LIBS"
  1093.   LIBS="-l$x_direct_test_library $LIBS"
  1094. cat > conftest.$ac_ext <<EOF
  1095. #line 1096 "configure"
  1096. #include "confdefs.h"
  1097.  
  1098. int main() {
  1099. ${x_direct_test_function}()
  1100. ; return 0; }
  1101. EOF
  1102. if { (eval echo configure:1103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1103.   rm -rf conftest*
  1104.   LIBS="$ac_save_LIBS"
  1105. # We can link X programs with no special library path.
  1106. ac_x_libraries=
  1107. else
  1108.   echo "configure: failed program was:" >&5
  1109.   cat conftest.$ac_ext >&5
  1110.   rm -rf conftest*
  1111.   LIBS="$ac_save_LIBS"
  1112. # First see if replacing the include by lib works.
  1113. # Check X11 before X11Rn because it is often a symlink to the current release.
  1114. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  1115.     /usr/X11/lib          \
  1116.     /usr/X11R6/lib        \
  1117.     /usr/X11R5/lib        \
  1118.     /usr/X11R4/lib        \
  1119.                           \
  1120.     /usr/lib/X11          \
  1121.     /usr/lib/X11R6        \
  1122.     /usr/lib/X11R5        \
  1123.     /usr/lib/X11R4        \
  1124.                           \
  1125.     /usr/local/X11/lib    \
  1126.     /usr/local/X11R6/lib  \
  1127.     /usr/local/X11R5/lib  \
  1128.     /usr/local/X11R4/lib  \
  1129.                           \
  1130.     /usr/local/lib/X11    \
  1131.     /usr/local/lib/X11R6  \
  1132.     /usr/local/lib/X11R5  \
  1133.     /usr/local/lib/X11R4  \
  1134.                           \
  1135.     /usr/X386/lib         \
  1136.     /usr/x386/lib         \
  1137.     /usr/XFree86/lib/X11  \
  1138.                           \
  1139.     /usr/lib              \
  1140.     /usr/local/lib        \
  1141.     /usr/unsupported/lib  \
  1142.     /usr/athena/lib       \
  1143.     /usr/local/x11r5/lib  \
  1144.     /usr/lpp/Xamples/lib  \
  1145.     /lib/usr/lib/X11      \
  1146.                           \
  1147.     /usr/openwin/lib      \
  1148.     /usr/openwin/share/lib \
  1149.     ; \
  1150. do
  1151.   for ac_extension in a so sl; do
  1152.     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  1153.       ac_x_libraries=$ac_dir
  1154.       break 2
  1155.     fi
  1156.   done
  1157. done
  1158. fi
  1159. rm -f conftest*
  1160. fi # $ac_x_libraries = NO
  1161.  
  1162. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  1163.   # Didn't find X anywhere.  Cache the known absence of X.
  1164.   ac_cv_have_x="have_x=no"
  1165. else
  1166.   # Record where we found X for the cache.
  1167.   ac_cv_have_x="have_x=yes \
  1168.             ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  1169. fi
  1170. fi
  1171.   fi
  1172.   eval "$ac_cv_have_x"
  1173. fi # $with_x != no
  1174.  
  1175. if test "$have_x" != yes; then
  1176.   echo "$ac_t""$have_x" 1>&6
  1177.   no_x=yes
  1178. else
  1179.   # If each of the values was on the command line, it overrides each guess.
  1180.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  1181.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  1182.   # Update the cache value to reflect the command line values.
  1183.   ac_cv_have_x="have_x=yes \
  1184.         ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  1185.   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  1186. fi
  1187.  
  1188. if test "$no_x" = "yes"; then { echo "configure: error: 'Cannot find X utilities or libraries'" 1>&2; exit 1; }; fi
  1189.  
  1190. # Check whether --enable-app-defaults or --disable-app-defaults was given.
  1191. if test "${enable_app_defaults+set}" = set; then
  1192.   enableval="$enable_app_defaults"
  1193.   DEFINE_UAD="#define USE_APP_DEFAULTS 1"; if test "$enable_app_defaults" = "yes"; then UAD_FLAGS="-DCOLOR"; else UAD_FLAGS="$enable_app_defaults"; fi
  1194. else
  1195.   DEFINE_UAD=""; UAD_FLAGS="-DCOLOR"
  1196. fi
  1197.  
  1198.  
  1199.  
  1200.  
  1201. # Check whether --with-pr3287 or --without-pr3287 was given.
  1202. if test "${with_pr3287+set}" = set; then
  1203.   withval="$with_pr3287"
  1204.   :
  1205. fi
  1206.  
  1207. if test "$with_pr3287" != "no"
  1208. then    DEFINE_PR3287="#define PR3287 1"
  1209. else    DEFINE_PR3287="#undef PR3287"
  1210. fi
  1211.  
  1212.  
  1213. # Check whether --with-fontdir or --without-fontdir was given.
  1214. if test "${with_fontdir+set}" = set; then
  1215.   withval="$with_fontdir"
  1216.   :
  1217. fi
  1218.  
  1219. case "$with_fontdir" in
  1220. ""|yes|no)
  1221.     IFONTDIR='$'"(FONTDIR)/misc"
  1222.     ;;
  1223. /*)
  1224.     IFONTDIR="$with_fontdir"
  1225.     ;;
  1226. *)
  1227.     IFONTDIR='$'"(FONTDIR)/$with_fontdir"
  1228.     ;;
  1229. esac
  1230.  
  1231.  
  1232. echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6
  1233. echo "configure:1234: checking for forkpty in -lutil" >&5
  1234. ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'`
  1235. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1236.   echo $ac_n "(cached) $ac_c" 1>&6
  1237. else
  1238.   ac_save_LIBS="$LIBS"
  1239. LIBS="-lutil  $LIBS"
  1240. cat > conftest.$ac_ext <<EOF
  1241. #line 1242 "configure"
  1242. #include "confdefs.h"
  1243. /* Override any gcc2 internal prototype to avoid an error.  */
  1244. /* We use char because int might match the return type of a gcc2
  1245.     builtin and then its argument prototype would still apply.  */
  1246. char forkpty();
  1247.  
  1248. int main() {
  1249. forkpty()
  1250. ; return 0; }
  1251. EOF
  1252. if { (eval echo configure:1253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1253.   rm -rf conftest*
  1254.   eval "ac_cv_lib_$ac_lib_var=yes"
  1255. else
  1256.   echo "configure: failed program was:" >&5
  1257.   cat conftest.$ac_ext >&5
  1258.   rm -rf conftest*
  1259.   eval "ac_cv_lib_$ac_lib_var=no"
  1260. fi
  1261. rm -f conftest*
  1262. LIBS="$ac_save_LIBS"
  1263.  
  1264. fi
  1265. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1266.   echo "$ac_t""yes" 1>&6
  1267.     ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1268.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1269.   cat >> confdefs.h <<EOF
  1270. #define $ac_tr_lib 1
  1271. EOF
  1272.  
  1273.   LIBS="-lutil $LIBS"
  1274.  
  1275. else
  1276.   echo "$ac_t""no" 1>&6
  1277. fi
  1278.  
  1279. echo $ac_n "checking for gethostbyname in -lnsl_s""... $ac_c" 1>&6
  1280. echo "configure:1281: checking for gethostbyname in -lnsl_s" >&5
  1281. ac_lib_var=`echo nsl_s'_'gethostbyname | sed 'y%./+-%__p_%'`
  1282. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1283.   echo $ac_n "(cached) $ac_c" 1>&6
  1284. else
  1285.   ac_save_LIBS="$LIBS"
  1286. LIBS="-lnsl_s  $LIBS"
  1287. cat > conftest.$ac_ext <<EOF
  1288. #line 1289 "configure"
  1289. #include "confdefs.h"
  1290. /* Override any gcc2 internal prototype to avoid an error.  */
  1291. /* We use char because int might match the return type of a gcc2
  1292.     builtin and then its argument prototype would still apply.  */
  1293. char gethostbyname();
  1294.  
  1295. int main() {
  1296. gethostbyname()
  1297. ; return 0; }
  1298. EOF
  1299. if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1300.   rm -rf conftest*
  1301.   eval "ac_cv_lib_$ac_lib_var=yes"
  1302. else
  1303.   echo "configure: failed program was:" >&5
  1304.   cat conftest.$ac_ext >&5
  1305.   rm -rf conftest*
  1306.   eval "ac_cv_lib_$ac_lib_var=no"
  1307. fi
  1308. rm -f conftest*
  1309. LIBS="$ac_save_LIBS"
  1310.  
  1311. fi
  1312. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1313.   echo "$ac_t""yes" 1>&6
  1314.     ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1315.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1316.   cat >> confdefs.h <<EOF
  1317. #define $ac_tr_lib 1
  1318. EOF
  1319.  
  1320.   LIBS="-lnsl_s $LIBS"
  1321.  
  1322. else
  1323.   echo "$ac_t""no" 1>&6
  1324. fi
  1325.  
  1326. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  1327. echo "configure:1328: checking for gethostbyname in -lnsl" >&5
  1328. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  1329. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1330.   echo $ac_n "(cached) $ac_c" 1>&6
  1331. else
  1332.   ac_save_LIBS="$LIBS"
  1333. LIBS="-lnsl  $LIBS"
  1334. cat > conftest.$ac_ext <<EOF
  1335. #line 1336 "configure"
  1336. #include "confdefs.h"
  1337. /* Override any gcc2 internal prototype to avoid an error.  */
  1338. /* We use char because int might match the return type of a gcc2
  1339.     builtin and then its argument prototype would still apply.  */
  1340. char gethostbyname();
  1341.  
  1342. int main() {
  1343. gethostbyname()
  1344. ; return 0; }
  1345. EOF
  1346. if { (eval echo configure:1347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1347.   rm -rf conftest*
  1348.   eval "ac_cv_lib_$ac_lib_var=yes"
  1349. else
  1350.   echo "configure: failed program was:" >&5
  1351.   cat conftest.$ac_ext >&5
  1352.   rm -rf conftest*
  1353.   eval "ac_cv_lib_$ac_lib_var=no"
  1354. fi
  1355. rm -f conftest*
  1356. LIBS="$ac_save_LIBS"
  1357.  
  1358. fi
  1359. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1360.   echo "$ac_t""yes" 1>&6
  1361.     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1362.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1363.   cat >> confdefs.h <<EOF
  1364. #define $ac_tr_lib 1
  1365. EOF
  1366.  
  1367.   LIBS="-lnsl $LIBS"
  1368.  
  1369. else
  1370.   echo "$ac_t""no" 1>&6
  1371. fi
  1372.  
  1373. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  1374. echo "configure:1375: checking for socket in -lsocket" >&5
  1375. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  1376. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1377.   echo $ac_n "(cached) $ac_c" 1>&6
  1378. else
  1379.   ac_save_LIBS="$LIBS"
  1380. LIBS="-lsocket  $LIBS"
  1381. cat > conftest.$ac_ext <<EOF
  1382. #line 1383 "configure"
  1383. #include "confdefs.h"
  1384. /* Override any gcc2 internal prototype to avoid an error.  */
  1385. /* We use char because int might match the return type of a gcc2
  1386.     builtin and then its argument prototype would still apply.  */
  1387. char socket();
  1388.  
  1389. int main() {
  1390. socket()
  1391. ; return 0; }
  1392. EOF
  1393. if { (eval echo configure:1394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1394.   rm -rf conftest*
  1395.   eval "ac_cv_lib_$ac_lib_var=yes"
  1396. else
  1397.   echo "configure: failed program was:" >&5
  1398.   cat conftest.$ac_ext >&5
  1399.   rm -rf conftest*
  1400.   eval "ac_cv_lib_$ac_lib_var=no"
  1401. fi
  1402. rm -f conftest*
  1403. LIBS="$ac_save_LIBS"
  1404.  
  1405. fi
  1406. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1407.   echo "$ac_t""yes" 1>&6
  1408.     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1409.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1410.   cat >> confdefs.h <<EOF
  1411. #define $ac_tr_lib 1
  1412. EOF
  1413.  
  1414.   LIBS="-lsocket $LIBS"
  1415.  
  1416. else
  1417.   echo "$ac_t""no" 1>&6
  1418. fi
  1419.  
  1420.  
  1421.  
  1422. for ac_hdr in sys/select.h
  1423. do
  1424. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1425. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1426. echo "configure:1427: checking for $ac_hdr" >&5
  1427. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1428.   echo $ac_n "(cached) $ac_c" 1>&6
  1429. else
  1430.   cat > conftest.$ac_ext <<EOF
  1431. #line 1432 "configure"
  1432. #include "confdefs.h"
  1433. #include <$ac_hdr>
  1434. EOF
  1435. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1436. { (eval echo configure:1437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1437. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1438. if test -z "$ac_err"; then
  1439.   rm -rf conftest*
  1440.   eval "ac_cv_header_$ac_safe=yes"
  1441. else
  1442.   echo "$ac_err" >&5
  1443.   echo "configure: failed program was:" >&5
  1444.   cat conftest.$ac_ext >&5
  1445.   rm -rf conftest*
  1446.   eval "ac_cv_header_$ac_safe=no"
  1447. fi
  1448. rm -f conftest*
  1449. fi
  1450. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1451.   echo "$ac_t""yes" 1>&6
  1452.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1453.   cat >> confdefs.h <<EOF
  1454. #define $ac_tr_hdr 1
  1455. EOF
  1456.  
  1457. else
  1458.   echo "$ac_t""no" 1>&6
  1459. fi
  1460. done
  1461.  
  1462. for ac_hdr in pty.h
  1463. do
  1464. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1465. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1466. echo "configure:1467: checking for $ac_hdr" >&5
  1467. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1468.   echo $ac_n "(cached) $ac_c" 1>&6
  1469. else
  1470.   cat > conftest.$ac_ext <<EOF
  1471. #line 1472 "configure"
  1472. #include "confdefs.h"
  1473. #include <$ac_hdr>
  1474. EOF
  1475. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1476. { (eval echo configure:1477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1477. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1478. if test -z "$ac_err"; then
  1479.   rm -rf conftest*
  1480.   eval "ac_cv_header_$ac_safe=yes"
  1481. else
  1482.   echo "$ac_err" >&5
  1483.   echo "configure: failed program was:" >&5
  1484.   cat conftest.$ac_ext >&5
  1485.   rm -rf conftest*
  1486.   eval "ac_cv_header_$ac_safe=no"
  1487. fi
  1488. rm -f conftest*
  1489. fi
  1490. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1491.   echo "$ac_t""yes" 1>&6
  1492.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1493.   cat >> confdefs.h <<EOF
  1494. #define $ac_tr_hdr 1
  1495. EOF
  1496.  
  1497. else
  1498.   echo "$ac_t""no" 1>&6
  1499. fi
  1500. done
  1501.  
  1502. for ac_hdr in libutil.h
  1503. do
  1504. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1505. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1506. echo "configure:1507: checking for $ac_hdr" >&5
  1507. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1508.   echo $ac_n "(cached) $ac_c" 1>&6
  1509. else
  1510.   cat > conftest.$ac_ext <<EOF
  1511. #line 1512 "configure"
  1512. #include "confdefs.h"
  1513. #include <$ac_hdr>
  1514. EOF
  1515. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1516. { (eval echo configure:1517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1517. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1518. if test -z "$ac_err"; then
  1519.   rm -rf conftest*
  1520.   eval "ac_cv_header_$ac_safe=yes"
  1521. else
  1522.   echo "$ac_err" >&5
  1523.   echo "configure: failed program was:" >&5
  1524.   cat conftest.$ac_ext >&5
  1525.   rm -rf conftest*
  1526.   eval "ac_cv_header_$ac_safe=no"
  1527. fi
  1528. rm -f conftest*
  1529. fi
  1530. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1531.   echo "$ac_t""yes" 1>&6
  1532.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1533.   cat >> confdefs.h <<EOF
  1534. #define $ac_tr_hdr 1
  1535. EOF
  1536.  
  1537. else
  1538.   echo "$ac_t""no" 1>&6
  1539. fi
  1540. done
  1541.  
  1542. for ac_hdr in util.h
  1543. do
  1544. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1545. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1546. echo "configure:1547: checking for $ac_hdr" >&5
  1547. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1548.   echo $ac_n "(cached) $ac_c" 1>&6
  1549. else
  1550.   cat > conftest.$ac_ext <<EOF
  1551. #line 1552 "configure"
  1552. #include "confdefs.h"
  1553. #include <$ac_hdr>
  1554. EOF
  1555. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1556. { (eval echo configure:1557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1557. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1558. if test -z "$ac_err"; then
  1559.   rm -rf conftest*
  1560.   eval "ac_cv_header_$ac_safe=yes"
  1561. else
  1562.   echo "$ac_err" >&5
  1563.   echo "configure: failed program was:" >&5
  1564.   cat conftest.$ac_ext >&5
  1565.   rm -rf conftest*
  1566.   eval "ac_cv_header_$ac_safe=no"
  1567. fi
  1568. rm -f conftest*
  1569. fi
  1570. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1571.   echo "$ac_t""yes" 1>&6
  1572.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1573.   cat >> confdefs.h <<EOF
  1574. #define $ac_tr_hdr 1
  1575. EOF
  1576.  
  1577. else
  1578.   echo "$ac_t""no" 1>&6
  1579. fi
  1580. done
  1581.  
  1582.  
  1583.  
  1584. for ac_func in vasprintf
  1585. do
  1586. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1587. echo "configure:1588: checking for $ac_func" >&5
  1588. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1589.   echo $ac_n "(cached) $ac_c" 1>&6
  1590. else
  1591.   cat > conftest.$ac_ext <<EOF
  1592. #line 1593 "configure"
  1593. #include "confdefs.h"
  1594. /* System header to define __stub macros and hopefully few prototypes,
  1595.     which can conflict with char $ac_func(); below.  */
  1596. #include <assert.h>
  1597. /* Override any gcc2 internal prototype to avoid an error.  */
  1598. /* We use char because int might match the return type of a gcc2
  1599.     builtin and then its argument prototype would still apply.  */
  1600. char $ac_func();
  1601.  
  1602. int main() {
  1603.  
  1604. /* The GNU C library defines this for functions which it implements
  1605.     to always fail with ENOSYS.  Some functions are actually named
  1606.     something starting with __ and the normal name is an alias.  */
  1607. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1608. choke me
  1609. #else
  1610. $ac_func();
  1611. #endif
  1612.  
  1613. ; return 0; }
  1614. EOF
  1615. if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1616.   rm -rf conftest*
  1617.   eval "ac_cv_func_$ac_func=yes"
  1618. else
  1619.   echo "configure: failed program was:" >&5
  1620.   cat conftest.$ac_ext >&5
  1621.   rm -rf conftest*
  1622.   eval "ac_cv_func_$ac_func=no"
  1623. fi
  1624. rm -f conftest*
  1625. fi
  1626.  
  1627. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1628.   echo "$ac_t""yes" 1>&6
  1629.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1630.   cat >> confdefs.h <<EOF
  1631. #define $ac_tr_func 1
  1632. EOF
  1633.  
  1634. else
  1635.   echo "$ac_t""no" 1>&6
  1636. fi
  1637. done
  1638.  
  1639.  
  1640. trap '' 1 2 15
  1641. cat > confcache <<\EOF
  1642. # This file is a shell script that caches the results of configure
  1643. # tests run on this system so they can be shared between configure
  1644. # scripts and configure runs.  It is not useful on other systems.
  1645. # If it contains results you don't want to keep, you may remove or edit it.
  1646. #
  1647. # By default, configure uses ./config.cache as the cache file,
  1648. # creating it if it does not exist already.  You can give configure
  1649. # the --cache-file=FILE option to use a different cache file; that is
  1650. # what configure does when it calls configure scripts in
  1651. # subdirectories, so they share the cache.
  1652. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1653. # config.status only pays attention to the cache file if you give it the
  1654. # --recheck option to rerun configure.
  1655. #
  1656. EOF
  1657. # The following way of writing the cache mishandles newlines in values,
  1658. # but we know of no workaround that is simple, portable, and efficient.
  1659. # So, don't put newlines in cache variables' values.
  1660. # Ultrix sh set writes to stderr and can't be redirected directly,
  1661. # and sets the high bit in the cache file unless we assign to the vars.
  1662. (set) 2>&1 |
  1663.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1664.   *ac_space=\ *)
  1665.     # `set' does not quote correctly, so add quotes (double-quote substitution
  1666.     # turns \\\\ into \\, and sed turns \\ into \).
  1667.     sed -n \
  1668.       -e "s/'/'\\\\''/g" \
  1669.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1670.     ;;
  1671.   *)
  1672.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1673.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1674.     ;;
  1675.   esac >> confcache
  1676. if cmp -s $cache_file confcache; then
  1677.   :
  1678. else
  1679.   if test -w $cache_file; then
  1680.     echo "updating cache $cache_file"
  1681.     cat confcache > $cache_file
  1682.   else
  1683.     echo "not updating unwritable cache $cache_file"
  1684.   fi
  1685. fi
  1686. rm -f confcache
  1687.  
  1688. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1689.  
  1690. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1691. # Let make expand exec_prefix.
  1692. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1693.  
  1694. # Any assignment to VPATH causes Sun make to only execute
  1695. # the first set of double-colon rules, so remove it if not needed.
  1696. # If there is a colon in the path, we need to keep it.
  1697. if test "x$srcdir" = x.; then
  1698.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1699. fi
  1700.  
  1701. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1702.  
  1703. DEFS=-DHAVE_CONFIG_H
  1704.  
  1705. # Without the "./", some shells look in PATH for config.status.
  1706. : ${CONFIG_STATUS=./config.status}
  1707.  
  1708. echo creating $CONFIG_STATUS
  1709. rm -f $CONFIG_STATUS
  1710. cat > $CONFIG_STATUS <<EOF
  1711. #! /bin/sh
  1712. # Generated automatically by configure.
  1713. # Run this file to recreate the current configuration.
  1714. # This directory was configured as follows,
  1715. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1716. #
  1717. # $0 $ac_configure_args
  1718. #
  1719. # Compiler output produced by configure, useful for debugging
  1720. # configure, is in ./config.log if it exists.
  1721.  
  1722. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1723. for ac_option
  1724. do
  1725.   case "\$ac_option" in
  1726.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1727.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1728.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1729.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1730.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1731.     exit 0 ;;
  1732.   -help | --help | --hel | --he | --h)
  1733.     echo "\$ac_cs_usage"; exit 0 ;;
  1734.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1735.   esac
  1736. done
  1737.  
  1738. ac_given_srcdir=$srcdir
  1739. ac_given_INSTALL="$INSTALL"
  1740.  
  1741. trap 'rm -fr `echo "Imakefile pr3287/Makefile conf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1742. EOF
  1743. cat >> $CONFIG_STATUS <<EOF
  1744.  
  1745. # Protect against being on the right side of a sed subst in config.status.
  1746. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1747.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1748. $ac_vpsub
  1749. $extrasub
  1750. s%@SHELL@%$SHELL%g
  1751. s%@CFLAGS@%$CFLAGS%g
  1752. s%@CPPFLAGS@%$CPPFLAGS%g
  1753. s%@CXXFLAGS@%$CXXFLAGS%g
  1754. s%@FFLAGS@%$FFLAGS%g
  1755. s%@DEFS@%$DEFS%g
  1756. s%@LDFLAGS@%$LDFLAGS%g
  1757. s%@LIBS@%$LIBS%g
  1758. s%@exec_prefix@%$exec_prefix%g
  1759. s%@prefix@%$prefix%g
  1760. s%@program_transform_name@%$program_transform_name%g
  1761. s%@bindir@%$bindir%g
  1762. s%@sbindir@%$sbindir%g
  1763. s%@libexecdir@%$libexecdir%g
  1764. s%@datadir@%$datadir%g
  1765. s%@sysconfdir@%$sysconfdir%g
  1766. s%@sharedstatedir@%$sharedstatedir%g
  1767. s%@localstatedir@%$localstatedir%g
  1768. s%@libdir@%$libdir%g
  1769. s%@includedir@%$includedir%g
  1770. s%@oldincludedir@%$oldincludedir%g
  1771. s%@infodir@%$infodir%g
  1772. s%@mandir@%$mandir%g
  1773. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1774. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  1775. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1776. s%@CC@%$CC%g
  1777. s%@host@%$host%g
  1778. s%@host_alias@%$host_alias%g
  1779. s%@host_cpu@%$host_cpu%g
  1780. s%@host_vendor@%$host_vendor%g
  1781. s%@host_os@%$host_os%g
  1782. s%@XANSI@%$XANSI%g
  1783. s%@CPP@%$CPP%g
  1784. s%@UAD_FLAGS@%$UAD_FLAGS%g
  1785. s%@DEFINE_UAD@%$DEFINE_UAD%g
  1786. s%@DEFINE_PR3287@%$DEFINE_PR3287%g
  1787. s%@IFONTDIR@%$IFONTDIR%g
  1788.  
  1789. CEOF
  1790. EOF
  1791.  
  1792. cat >> $CONFIG_STATUS <<\EOF
  1793.  
  1794. # Split the substitutions into bite-sized pieces for seds with
  1795. # small command number limits, like on Digital OSF/1 and HP-UX.
  1796. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1797. ac_file=1 # Number of current file.
  1798. ac_beg=1 # First line for current file.
  1799. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1800. ac_more_lines=:
  1801. ac_sed_cmds=""
  1802. while $ac_more_lines; do
  1803.   if test $ac_beg -gt 1; then
  1804.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1805.   else
  1806.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1807.   fi
  1808.   if test ! -s conftest.s$ac_file; then
  1809.     ac_more_lines=false
  1810.     rm -f conftest.s$ac_file
  1811.   else
  1812.     if test -z "$ac_sed_cmds"; then
  1813.       ac_sed_cmds="sed -f conftest.s$ac_file"
  1814.     else
  1815.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1816.     fi
  1817.     ac_file=`expr $ac_file + 1`
  1818.     ac_beg=$ac_end
  1819.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1820.   fi
  1821. done
  1822. if test -z "$ac_sed_cmds"; then
  1823.   ac_sed_cmds=cat
  1824. fi
  1825. EOF
  1826.  
  1827. cat >> $CONFIG_STATUS <<EOF
  1828.  
  1829. CONFIG_FILES=\${CONFIG_FILES-"Imakefile pr3287/Makefile"}
  1830. EOF
  1831. cat >> $CONFIG_STATUS <<\EOF
  1832. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1833.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1834.   case "$ac_file" in
  1835.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1836.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1837.   *) ac_file_in="${ac_file}.in" ;;
  1838.   esac
  1839.  
  1840.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1841.  
  1842.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1843.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1844.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1845.     # The file is in a subdirectory.
  1846.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1847.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1848.     # A "../" for each directory in $ac_dir_suffix.
  1849.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1850.   else
  1851.     ac_dir_suffix= ac_dots=
  1852.   fi
  1853.  
  1854.   case "$ac_given_srcdir" in
  1855.   .)  srcdir=.
  1856.       if test -z "$ac_dots"; then top_srcdir=.
  1857.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1858.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1859.   *) # Relative path.
  1860.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1861.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1862.   esac
  1863.  
  1864.   case "$ac_given_INSTALL" in
  1865.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1866.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1867.   esac
  1868.  
  1869.   echo creating "$ac_file"
  1870.   rm -f "$ac_file"
  1871.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1872.   case "$ac_file" in
  1873.   *Makefile*) ac_comsub="1i\\
  1874. # $configure_input" ;;
  1875.   *) ac_comsub= ;;
  1876.   esac
  1877.  
  1878.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1879.   sed -e "$ac_comsub
  1880. s%@configure_input@%$configure_input%g
  1881. s%@srcdir@%$srcdir%g
  1882. s%@top_srcdir@%$top_srcdir%g
  1883. s%@INSTALL@%$INSTALL%g
  1884. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1885. fi; done
  1886. rm -f conftest.s*
  1887.  
  1888. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1889. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1890. #
  1891. # ac_d sets the value in "#define NAME VALUE" lines.
  1892. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1893. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  1894. ac_dC='\3'
  1895. ac_dD='%g'
  1896. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1897. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1898. ac_uB='\([     ]\)%\1#\2define\3'
  1899. ac_uC=' '
  1900. ac_uD='\4%g'
  1901. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1902. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1903. ac_eB='$%\1#\2define\3'
  1904. ac_eC=' '
  1905. ac_eD='%g'
  1906.  
  1907. if test "${CONFIG_HEADERS+set}" != set; then
  1908. EOF
  1909. cat >> $CONFIG_STATUS <<EOF
  1910.   CONFIG_HEADERS="conf.h"
  1911. EOF
  1912. cat >> $CONFIG_STATUS <<\EOF
  1913. fi
  1914. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1915.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1916.   case "$ac_file" in
  1917.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1918.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1919.   *) ac_file_in="${ac_file}.in" ;;
  1920.   esac
  1921.  
  1922.   echo creating $ac_file
  1923.  
  1924.   rm -f conftest.frag conftest.in conftest.out
  1925.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1926.   cat $ac_file_inputs > conftest.in
  1927.  
  1928. EOF
  1929.  
  1930. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1931. # the proper values into config.h.in to produce config.h.  And first:
  1932. # Protect against being on the right side of a sed subst in config.status.
  1933. # Protect against being in an unquoted here document in config.status.
  1934. rm -f conftest.vals
  1935. cat > conftest.hdr <<\EOF
  1936. s/[\\&%]/\\&/g
  1937. s%[\\$`]%\\&%g
  1938. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1939. s%ac_d%ac_u%gp
  1940. s%ac_u%ac_e%gp
  1941. EOF
  1942. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1943. rm -f conftest.hdr
  1944.  
  1945. # This sed command replaces #undef with comments.  This is necessary, for
  1946. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1947. # on some systems where configure will not decide to define it.
  1948. cat >> conftest.vals <<\EOF
  1949. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1950. EOF
  1951.  
  1952. # Break up conftest.vals because some shells have a limit on
  1953. # the size of here documents, and old seds have small limits too.
  1954.  
  1955. rm -f conftest.tail
  1956. while :
  1957. do
  1958.   ac_lines=`grep -c . conftest.vals`
  1959.   # grep -c gives empty output for an empty file on some AIX systems.
  1960.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1961.   # Write a limited-size here document to conftest.frag.
  1962.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1963.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1964.   echo 'CEOF
  1965.   sed -f conftest.frag conftest.in > conftest.out
  1966.   rm -f conftest.in
  1967.   mv conftest.out conftest.in
  1968. ' >> $CONFIG_STATUS
  1969.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1970.   rm -f conftest.vals
  1971.   mv conftest.tail conftest.vals
  1972. done
  1973. rm -f conftest.vals
  1974.  
  1975. cat >> $CONFIG_STATUS <<\EOF
  1976.   rm -f conftest.frag conftest.h
  1977.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  1978.   cat conftest.in >> conftest.h
  1979.   rm -f conftest.in
  1980.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  1981.     echo "$ac_file is unchanged"
  1982.     rm -f conftest.h
  1983.   else
  1984.     # Remove last slash and all that follows it.  Not all systems have dirname.
  1985.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1986.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1987.       # The file is in a subdirectory.
  1988.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  1989.     fi
  1990.     rm -f $ac_file
  1991.     mv conftest.h $ac_file
  1992.   fi
  1993. fi; done
  1994.  
  1995. EOF
  1996. cat >> $CONFIG_STATUS <<EOF
  1997.  
  1998. EOF
  1999. cat >> $CONFIG_STATUS <<\EOF
  2000.  
  2001. exit 0
  2002. EOF
  2003. chmod +x $CONFIG_STATUS
  2004. rm -fr confdefs* $ac_clean_files
  2005. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2006.  
  2007.